<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <title>3.对象与解构赋值</title>
  </head>
  <body>
    <script type="text/javascript" >
      let obj = {a:1}

      let {a} = obj // let a = obj.a1

      a = 9

      console.log(a) //9
      console.log(obj.a) //1
    </script>
  </body>
</html>